package com.module.wx;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.UUID;

@RestController
@RequestMapping("/wx/applet")
@ApiModel(value="测试接口controller")
public class TestRequest {
    /**
     * 测试系统功能模块接口
     */
    @ApiModelProperty(value="测试接口")
    @GetMapping(value = "/test")
    public String test(){
        /*生成随机id数UUID uuid = UUID.randomUUID();
        String str = uuid.toString();
        String uuidStr = str.replace("-", "");*/
        //获取当前年月日时分秒及8位毫秒
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSSSSSS")).toString();
    }
}
